﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Prsrp
{
    class AmmoCrate : BaseCollectable
    {
        /*
         * Constructor
         */
        public AmmoCrate(Vector2 _pPos)
        {
            mvPos = _pPos;
        }

        public override void LoadSprites()
        {
            DefineSprite(0, "item_ammocrate_idle", 6);
        }

        /*
         *  LOGIC
         */
        public override void OnPicked(BaseHero _pHero)
        {
            _pHero.AddAmmo(10);
            Dispose();
        }
    }
}
